<?php
/**Settings:*/
define('DB_HOST','localhost');
define('DB_PORT','3306');
define('DB_USER','root');
define('DB_PWD','123456');
define('DB_NAME','work');
/*-*/

require 'Yee.php';

/**
 * initialize with authentication:
 *
Yee::import('HTTPDigest');
$HTTPDigest =& new HTTPDigest();
$username=$HTTPDigest->authenticate(array('mrhanta' => md5('mrhanta:'.$HTTPDigest->getRealm().':pig@163')));
if(!$username){
	$HTTPDigest->send();
	exit(0);
}
/*-*/

Yee::run(array(
	'init'=>'init'
));	

function init(){
	
	echo 'Hello World!';

}
?>